<!DOCTYPE html>
<html>
<head>
<title>Connectez-vous</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- My style -->
<link href="css/bootstrap.css" rel="stylesheet" media="screen">
<link href="css/login.css" rel="stylesheet">
</head>
<body>


	<div class="container">
	<div class="login-container">
            <div id="output"></div>
            <div class="avatar"><img class="profile-img" src="img/zodio.gif" style="border-radius: 8px;"></div>
            <div class="form-box">
            
            <form class="form-signin" method="post"
						action="./action/authentificationAction.php">
						<p>
						<?php
						// Traitement message erreur
						require_once ("./enums/enums.php");
						session_start ();
						echo '<input type="text" class="form-control" placeholder="Login" name="login_responsable" id="login_responsable" required autofocus>';
						$erreur = isset($_SESSION ['messageErreur']);
						if ($erreur != null && $_SESSION ['messageErreur'] == MAUVAIS_LOGIN) {
							echo '<FONT COLOR="red">Votre login est incorrect</FONT>';
							$_SESSION ['messageErreur'] = null;
						}
						
						echo '<input type="password" class="form-control" name="password_responsable" id="password_responsable" placeholder="Mot de passe" required>';
						
						if ($erreur != null && $_SESSION ['messageErreur'] == MAUVAIS_PASSWORD) {
							echo "<FONT COLOR=\"red\">Votre mot de passe est incorrect</FONT>";
							$_SESSION ['messageErreur'] = null;
						}
						?>
					              <button class="btn btn-info btn-block login" type="submit">Valider</button>
						</p>
			</form>
            
          </div>
        </div>
        
</div>

</body>
</html>